<!DOCTYPE html>
<html lang="en">
<head>
    <title><#:C('sitename')#></title>
	<meta name="keywords" content="<#:C('keyword')#>"/>
	<meta name="description" content="<#:C('content')#>"/>
	<meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 
 <link rel="stylesheet" href="<#$Theme['P']['root']#>/matrix/css/bootstrap.min.css" />
  <link rel="stylesheet" href="<#$Theme['P']['root']#>/matrix/css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="<#$Theme['P']['root']#>/matrix/css/matrix-login.css" />
<link href="<#$Theme['P']['root']#>/matrix/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href="<#$Theme['P']['root']#>/font/googlefont.css" rel="stylesheet" />

<style>
	.edulist{line-height: 25px;font-size:14px;}
.STYLE1 {
	color: #FFFF00;
	font-weight: bold;
}
.STYLE2 {
	color: #00E8E8;
	font-weight: bold;
}
</style>
</head>
    <body alink="#FFFFFF">
     <link href="<#$Theme['P']['root']#>/css/qq/css/contact.css" rel="stylesheet" type="text/css" />

  <style type="text/css">
  
    .sideBarNav
    {
        right:0px;
        margin:100px 0px 0px 0px;
        position:fixed;
    }  
    .menubox{display:none;float:right;}
    .showbox{float:right;margin-top:40px;}
    .showbox img{border:0px;cursor:pointer;}
</style>
 

        <div id="loginbox">  
        	<div class="control-group normal_text"> <h3><img src="<#$Theme['P']['img']#>/wifilogo.png" /></h3></div>
                  
            <form id="loginform" class="form-vertical">
		       		<div class="alert hide" id="msgbox" style="margin:10px 0px;">
               <div id="alertmsg"></div>
             </div>
            
                <div class="control-group">
                    <div class="controls">
                    	
                        <div class="main_input_box">                      		
                            <span class="add-on bg_lv"><i class="icon-user"></i></span><input type="text" placeholder="帐号"  name="txt_user" id="txt_user" />
                        	
                        </div>
                    
                    </div>
                </div>
                
                <div class="control-group">
                    <div class="controls">
                  
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span><input type="password" placeholder="密码" name="password" id="password"/></div></div></div>
                <div class="control-group">
                    <div class="main_input_box" style="font-size:16px;">
                  		
                       
                    </div>
                </div>
                   <div class="control-group">
                    <div class="controls" style="margin-bottom: 10px;">
                   
                    <span class="pull-left"><a href="#" class="flip-link btn btn-info" href="javascript:void(0);" id="btn_reg"><span class="STYLE2">用户注册</span></a></span>
                 
                    <span class="pull-right STYLE1"><a type="submit" href="javascript:void(0);" class="btn btn-success" id="btn_log"> 登录</a></span>               		</div>
                </div>
  <div class="form-actions">
                <div class="main_input_box"></div>         
              </div>
                <div class="control-group">
                <div class="main_input_box"></div> 
				<div class="main_input_box"> Copyright（c）2013-2014 www.FYWIFI.cn AII Rights Reserved 飞扬无线 精彩无限</div>        
                <div class="main_input_box"> <h5>&nbsp;</h5>
                </div>         
                </div>
                
                 
            </form>
         <div style="display: none">
      <script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fff6b82e1b2c7607791dcac12a7ab8ce1' type='text/javascript'%3E%3C/script%3E"));
</script>
      </div>
        <script src="<#$Theme['P']['root']#>/matrix/js/jquery.min.js"></script>
<script src="<#$Theme['P']['root']#>/matrix/js/bootstrap.min.js"></script> 
		<script src="<#$Theme['P']['root']#>/matrix/js/common.js"></script> 
        <script type="text/javascript">

    	document.onkeydown=function(event){
    	  e = event ? event :(window.event ? window.event : null);
    	  if(e.keyCode==13){
    	   //执行的方法
    	  	$('#btn_log').click();
    	  }
    	 }
    
        $(function () {
        	$('#btn_reg').bind('click',function(){
				location.href='<#:U('index/index/err')#>';
				});
            // bg switcher
          
            $('#btn_log').bind('click',function(){
				var u=$('#txt_user').val();
				var p=$('#password').val();
				 if (u == "") {
					 AlertTips( "请输入用户名",  2000);
				        return false;
				 }
				  if (p == "") {
					
					  AlertTips( "请输入密码",2000);
				        return false;
				  }
				  $.ajax({
					  url: '<#:U('index/user/dologin')#>',
				        type: "post",
						data:{
							'user':u,
							'password':p,
							'__hash__':$('input[name="__hash__"]').val()
							},
						dataType:'json',
						error:function(){
								AlertTips("服务器忙，请稍候再试",2000);
								},
						success:function(data){
								
								if(data.error==0){
									location.href=data.url;
									
								}else{
									AlertTips(data.msg, 2000);
								}
						}
					  });
				});
        });
    </script>
     <script language="javascript">
        var isshow = false;
        $(function () {
            $("#showqq").click(function () {
                if (!isshow) {
                    isshow = true;
                    $(".showbox").css("margin-right", "-3px");
                    $(".menubox").show('slow');
                } else {
                    isshow = false;
                    $(".showbox").css("margin-right", "0px");
                    $(".menubox").hide('slow');
                }
            });

           
        });   
</script>
</body>

</html>


